package com.food.foodapi.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 92110
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("food_type")
public class Type {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @TableField("name")
    private String name;
}
